package com.zhao.condition;

import java.util.List;


public class Condition {
	public static final String EQ = "eq";//等于
	public static final String GT = "gt";//大于
	public static final String LT = "lt";//小于
	public static final String GTE = "gte";//大于等于
	public static final String LTE = "lte";//小于等于
	public static final String LIKE = "like";
	public static final String BETWEEN = "between";//两者之间
	
	private String fieldName;
	private String relation;
	private List<Object> vals;
	
	public Condition(String fieldName, String relation, List<Object> vals) {
		this.fieldName = fieldName;
		this.relation = relation;
		this.vals = vals;
	}
	
	public String getFieldName() {
		return fieldName;
	}

	public String getRelation() {
		return relation;
	}

	public List<Object> getVals() {
		return vals;
	}
}
